//
//  MTWithdrawModel.swift
//  MT
//
//  Created by 陈悦 on 2020/5/20.
//  Copyright © 2020 张强. All rights reserved.
//

import Foundation
import ObjectMapper
import MTCategory

class MTWithdrawReportModel: Mappable {
    
    /// 请求是否成功的code
    var code: Int?
    /// 请求返回的Message
    var message: String?
    /// 分页对象
    var page: PageModel?
    /// 时间戳
    var timestamp: TimeInterval?
    
    var giftSum: Int?
    
    var result: [MTWithdrawReportSubModel]?
    
    required public init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code    <- map["code"]
        message <- map["message"]
        page <- map["page"]
        timestamp <- map["timestamp"]
        result  <- map["result"]
        giftSum  <- map["giftSum"]
    }
}


class MTWithdrawReportSubModel: Mappable {
    
    var createTime: String?
    
    var amount: Int = 0
    
    var rmbAmount: Int = 0
    
    var rate: Int = 0
    
    var expireTime: String?
    
    var remark: String?
    
    var status: Int = 0
    

    
    required public init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        createTime      <- map["createTime"]
        amount          <- map["amount"]
        rmbAmount       <- map["rmbAmount"]
        rate            <- map["rate"]
        expireTime        <- map["expireTime"]
        remark            <- map["remark"]
        status            <- map["status"]
    }
}

